package game.uno.client;

import javax.swing.ImageIcon;
import javax.swing.JFrame;

public class Display extends JFrame
{
	private static final long serialVersionUID = -2670634108034132530L;

	public Display()
	{
		init();
		
		this.setSize(800,600);
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setVisible(true);
	}
	
	private void init()
	{
		if(!CardList.isInit)
		{
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE0.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE1.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE2.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE3.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE4.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE5.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE6.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE7.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE8.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUE9.png")).getImage());
			
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW0.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW1.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW2.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW3.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW4.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW5.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW6.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW7.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW8.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOW9.png")).getImage());
			
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN0.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN1.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN2.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN3.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN4.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN5.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN6.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN7.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN8.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREEN9.png")).getImage());
			
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED0.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED1.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED2.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED3.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED4.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED5.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED6.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED7.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED8.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/RED9.png")).getImage());
			
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/REDSKIP.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUESKIP.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREENSKIP.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOWSKIP.png")).getImage());
			
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/REDDRAWTWO.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUEDRAWTWO.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREENDRAWTWO.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOWDRAWTWO.png")).getImage());
			
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/REDREVERSE.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUEREVERSE.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREENREVERSE.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOWREVERSE.png")).getImage());
			
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/REDWILD.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUEWILD.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREENWILD.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOWWILD.png")).getImage());
			
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/REDWILDDRAWFOUR.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/BLUEWILDDRAWFOUR.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/GREENWILDDRAWFOUR.png")).getImage());
			CardList.cardImages.add(new ImageIcon(this.getClass().getResource("/IMAGES/YELLOWWILDDRAWFOUR.png")).getImage());
		}
	}
}
